const { Users } = require('../../model/user')
module.exports = async(req, res) => {
    await Users.findOneAndDelete({ _id: req.query.id })
    res.redirect('/admin/user')
}